package com.settlement.system.controller;

import com.settlement.system.model.entity.common.TblRrCommissionRateConfig;
import com.settlement.system.service.IBaseService;
import com.settlement.system.service.ITblRrCommissionRateConfigService;
import com.settlement.system.common.util.common.FasUtil;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 收退款-佣金比例配置表 前端控制器
 * @author Ximi
 * @since 2020-06-30
 */

@Api(tags = "收退款-佣金比例配置表",description = "收退款-佣金比例配置表")
@RestController
@RequestMapping("/receive_refund/commission/rate_config")
public class TblRrCommissionRateConfigController extends ExcelController<TblRrCommissionRateConfig> {

    @Resource
    private ITblRrCommissionRateConfigService tblRrCommissionRateConfigService;

    @Override
    public IBaseService init() {
        return tblRrCommissionRateConfigService;
    }

    @Override
    public Class<?> getModelClass() {
        return TblRrCommissionRateConfig.class;
    }

    @Override
    protected void setParamsModel(Map<String, Object> model) {
        FasUtil.formatInQueryCondition(model,"shopNo");
        super.setParamsModel(model);
    }
}

